﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BiocityFilmquizAdmin.Src.Domain
{
    public class Comment : IComparable
    {
        public String userName { get; set; }
        public String comment { get; set; }
        public int question { get; set; }
        public String time { get; set; }

        public Comment(String comment, String userName, int question, String time)
        {
            this.comment = comment;
            this.userName = userName;
            this.question = question;
            this.time = time;
        }

        int IComparable.CompareTo(Object obj)
        {
            return question - ((Comment)obj).question;
        }
    }
}